import request from '@/utils/request'

// 查询地区
export function queryPublish(data) {
    return request({
      url: '/Publish/query',
      method: 'post',
      data
    })
} 

//查询学生
export function queryByStudnet(data) {
    return request({
      url: '/Publish/queryByStudnet',
      method: 'post',
      data
    })
} 

//查询学生
export function studentquery(data) {
    return request({
      url: '/Publish/studentquery',
      method: 'post',
      data
    })
} 
//撤销发布
export function cancelPublish(id) {
    return request({
      url: '/Publish/cancelPublish/'+id,
      method: 'get'
    })
} 

//作业批改
export function correctExamByStudent(data) {
  return request({
    url: '/Publish/correctExamByStudent',
    method: 'post',
    data
  })
} 

